.class final Lcom/estrongs/io/archive/sevenzip/b$d;
.super Ljava/lang/Object;
.source "P7zipPluginDownloader.java"

# interfaces
.implements Les/y80;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/estrongs/io/archive/sevenzip/b;->b(Landroid/app/Activity;Ljava/lang/String;Ljava/io/File;Ljava/io/File;Landroid/os/ConditionVariable;[ZLjava/lang/Runnable;ZLjava/lang/String;)V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x8
    name = null
.end annotation


# instance fields
.field final synthetic a:Ljava/io/File;

.field final synthetic b:[Z

.field final synthetic c:Landroid/app/Activity;

.field final synthetic d:Ljava/lang/String;

.field final synthetic e:Z

.field final synthetic f:Landroid/os/ConditionVariable;

.field final synthetic g:Ljava/lang/Runnable;


# direct methods
.method constructor <init>(Ljava/io/File;[ZLandroid/app/Activity;Ljava/lang/String;ZLandroid/os/ConditionVariable;Ljava/lang/Runnable;)V
    .locals 0

    .line 1
    iput-object p1, p0, Lcom/estrongs/io/archive/sevenzip/b$d;->a:Ljava/io/File;

    iput-object p2, p0, Lcom/estrongs/io/archive/sevenzip/b$d;->b:[Z

    iput-object p3, p0, Lcom/estrongs/io/archive/sevenzip/b$d;->c:Landroid/app/Activity;

    iput-object p4, p0, Lcom/estrongs/io/archive/sevenzip/b$d;->d:Ljava/lang/String;

    iput-boolean p5, p0, Lcom/estrongs/io/archive/sevenzip/b$d;->e:Z

    iput-object p6, p0, Lcom/estrongs/io/archive/sevenzip/b$d;->f:Landroid/os/ConditionVariable;

    iput-object p7, p0, Lcom/estrongs/io/archive/sevenzip/b$d;->g:Ljava/lang/Runnable;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public a(Les/s80;Z)V
    .locals 2

    const/4 p1, 0x0

    if-eqz p2, :cond_0

    .line 1
    :try_start_0
    new-instance v0, Ljava/io/File;

    iget-object v1, p0, Lcom/estrongs/io/archive/sevenzip/b$d;->a:Ljava/io/File;

    invoke-virtual {v1}, Ljava/io/File;->getPath()Ljava/lang/String;

    move-result-object v1

    invoke-direct {v0, v1}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    const/4 v1, 0x1

    .line 2
    invoke-virtual {v0, v1, p1}, Ljava/io/File;->setExecutable(ZZ)Z

    .line 3
    invoke-virtual {v0, v1, p1}, Ljava/io/File;->setReadable(ZZ)Z

    const-string v0, "suc"

    .line 4
    invoke-static {v0}, Lcom/estrongs/io/archive/sevenzip/b;->a(Ljava/lang/String;)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    .line 5
    :catch_0
    iget-object v0, p0, Lcom/estrongs/io/archive/sevenzip/b$d;->b:[Z

    aput-boolean p1, v0, p1

    .line 6
    iget-object p1, p0, Lcom/estrongs/io/archive/sevenzip/b$d;->c:Landroid/app/Activity;

    iget-object v0, p0, Lcom/estrongs/io/archive/sevenzip/b$d;->d:Ljava/lang/String;

    invoke-static {p1, v0}, Lcom/estrongs/io/archive/sevenzip/b;->a(Landroid/app/Activity;Ljava/lang/String;)V

    const-string p1, "r_fail"

    .line 7
    invoke-static {p1}, Lcom/estrongs/io/archive/sevenzip/b;->a(Ljava/lang/String;)V

    goto :goto_0

    .line 8
    :cond_0
    iget-object v0, p0, Lcom/estrongs/io/archive/sevenzip/b$d;->b:[Z

    aput-boolean p1, v0, p1

    .line 9
    iget-object p1, p0, Lcom/estrongs/io/archive/sevenzip/b$d;->c:Landroid/app/Activity;

    iget-object v0, p0, Lcom/estrongs/io/archive/sevenzip/b$d;->d:Ljava/lang/String;

    invoke-static {p1, v0}, Lcom/estrongs/io/archive/sevenzip/b;->a(Landroid/app/Activity;Ljava/lang/String;)V

    const-string p1, "cp_fail"

    .line 10
    invoke-static {p1}, Lcom/estrongs/io/archive/sevenzip/b;->a(Ljava/lang/String;)V

    .line 11
    :goto_0
    iget-boolean p1, p0, Lcom/estrongs/io/archive/sevenzip/b$d;->e:Z

    if-eqz p1, :cond_1

    .line 12
    iget-object p1, p0, Lcom/estrongs/io/archive/sevenzip/b$d;->f:Landroid/os/ConditionVariable;

    invoke-virtual {p1}, Landroid/os/ConditionVariable;->open()V

    goto :goto_1

    :cond_1
    if-eqz p2, :cond_2

    .line 13
    iget-object p1, p0, Lcom/estrongs/io/archive/sevenzip/b$d;->c:Landroid/app/Activity;

    new-instance p2, Lcom/estrongs/io/archive/sevenzip/b$d$a;

    invoke-direct {p2, p0}, Lcom/estrongs/io/archive/sevenzip/b$d$a;-><init>(Lcom/estrongs/io/archive/sevenzip/b$d;)V

    invoke-virtual {p1, p2}, Landroid/app/Activity;->runOnUiThread(Ljava/lang/Runnable;)V

    :cond_2
    :goto_1
    return-void
.end method
